<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>课程开设管理界面</title>

<link href="../../bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="../../bootstrap/css/style.css" rel="stylesheet">

<!-- Bootstrap core CSS -->
<link
	href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css"
	rel="stylesheet">

<!-- Optional Bootstrap Theme -->
<link href="data:text/css;charset=utf-8,"
	data-href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap-theme.min.css"
	rel="stylesheet" id="bs-theme-stylesheet">

<link href="../assets/css/patch.css" rel="stylesheet">

<!-- Documentation extras -->
<link href="../../bootstrap/assets/css/docs.min.css" rel="stylesheet">
<!--[if lt IE 9]><script src="../../bootstrap/assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="../../bootstrap/assets/js/ie-emulation-modes-warning.js"></script>

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
  <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.js"></script>
  <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

<!-- Bootstrap core CSS -->
<!-- Optional Bootstrap Theme -->
<link href="data:text/css;charset=utf-8,"
	data-href="../../bootstrap/css/bootstrap-theme.min.css"
	rel="stylesheet" id="bs-theme-stylesheet">

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
  <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

</head>
<body>
	<div>
		<td><a href="CourseInfoAddServlet?opt=2">添加课程</a></td>
	</div>
	<div>
		<div class="bs-example">
			<table class="table table-hover">
				<thead>
					<tr>
						<th>#</th>
						<th>课程ID</th>
						<th>课程名称</th>
						<th>修改课程</th>
						<th>删除课程</th>
					</tr>
				</thead>
				<tbody>

					<c:forEach items="${sessionScope.lstCou }" var="eachCou"
						varStatus="st">
						<tr>
							<td>${st.index+1 }</td>
							<td>${eachCou.couid }</td>
							<td>${eachCou.couname }</td>
							<td><a
								href="CourseInfoModifyServlet?uid=${eachCou.couid }&opt=0">修改课程</a></td>
							<td><a
								href="CourseInfoModifyServlet?uid=${eachCou.couid }&opt=1"
								onclick="return confirm('是否确认删除课程【${eachCou.couname }】的信息')">删除课程</a></td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
	</div>

	<script src="../../bootstrap/js/jquery.min.js"></script>
	<script src="../../bootstrap/js/bootstrap.min.js"></script>
	<script src="../../bootstrap/js/scripts.js"></script>

</body>
</html>